package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CarForumCommentsMapper;
import com.ruoyi.system.domain.CarForumComments;
import com.ruoyi.system.service.ICarForumCommentsService;

/**
 * 车圈评论Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-08
 */
@Service
public class CarForumCommentsServiceImpl implements ICarForumCommentsService 
{
    @Autowired
    private CarForumCommentsMapper carForumCommentsMapper;

    /**
     * 查询车圈评论
     * 
     * @param commentId 车圈评论主键
     * @return 车圈评论
     */
    @Override
    public CarForumComments selectCarForumCommentsByCommentId(Long commentId)
    {
        return carForumCommentsMapper.selectCarForumCommentsByCommentId(commentId);
    }

    /**
     * 查询车圈评论列表
     * 
     * @param carForumComments 车圈评论
     * @return 车圈评论
     */
    @Override
    public List<CarForumComments> selectCarForumCommentsList(CarForumComments carForumComments)
    {
        return carForumCommentsMapper.selectCarForumCommentsList(carForumComments);
    }

    /**
     * 新增车圈评论
     * 
     * @param carForumComments 车圈评论
     * @return 结果
     */
    @Override
    public int insertCarForumComments(CarForumComments carForumComments)
    {
        return carForumCommentsMapper.insertCarForumComments(carForumComments);
    }

    /**
     * 修改车圈评论
     * 
     * @param carForumComments 车圈评论
     * @return 结果
     */
    @Override
    public int updateCarForumComments(CarForumComments carForumComments)
    {
        return carForumCommentsMapper.updateCarForumComments(carForumComments);
    }

    /**
     * 批量删除车圈评论
     * 
     * @param commentIds 需要删除的车圈评论主键
     * @return 结果
     */
    @Override
    public int deleteCarForumCommentsByCommentIds(Long[] commentIds)
    {
        return carForumCommentsMapper.deleteCarForumCommentsByCommentIds(commentIds);
    }

    /**
     * 删除车圈评论信息
     * 
     * @param commentId 车圈评论主键
     * @return 结果
     */
    @Override
    public int deleteCarForumCommentsByCommentId(Long commentId)
    {
        return carForumCommentsMapper.deleteCarForumCommentsByCommentId(commentId);
    }
}
